package com.cy.pj.brand.dao;

import com.cy.pj.brand.pojo.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BrandDao {
    /*查询*/
    List<Brand> findBrand(String name);
    /*根据id值删除*/
    Integer deleteById(Integer id);
    /*添加*/
    Integer addBrand(Brand brand);

    /*根据id值修改*/
    @Select("select * from tb_brand where id=#{id}")
    Brand findById(Integer id);
    Integer updateBrand(Brand id);
}
